package com.example.lt.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author 涛Tao
 * @Date: 2024/05/29/8:59
 * version 1.0 注释：收藏类
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "collect") // 对应数据库中的collect表
public class Collect {

    @TableId(type = IdType.AUTO) // id自增
    private Integer id;

    private Integer userId;

    private Byte type;

    private Integer songId;

    private Integer songListId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
